package cn.laowen.org.service.impl;

import cn.laowen.basic.query.BasicQuery;
import cn.laowen.basic.service.impl.BasicServiceImpl;
import cn.laowen.basic.util.PageList;
import cn.laowen.org.domain.Dictionary;
import cn.laowen.org.mapper.DictionaryMapper;
import cn.laowen.org.service.IDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class DictionaryServiceImpl extends BasicServiceImpl<Dictionary> implements IDictionaryService {
    //1.一般业务实现可以通公共业务实现层来实现

    //2.特殊的业务实现需要自己重写

    @Autowired
    private DictionaryMapper dictionaryMapper;

    @Override
    public Dictionary queryTypeId(long id) {
        return dictionaryMapper.loadByTypeId(id);
    }
}
